@echo off

if "%BASEPATH%" == "" (
   if "%1"=="" (
      set BASEPATH=.
   ) else (
      set BASEPATH=%1
   )
)

call jspc -trimSpaces -classpath %BASEPATH% -webapp %BASEPATH%\ru\arriah\servicedesk\web\commonjsp -d %BASEPATH%\..\..\build -p ru.arriah.servicedesk.web.commonjsp -mapped -compile

native2ascii -encoding Cp1251 %BASEPATH%\ru\arriah\servicedesk\web\commonjsp\servicedesk_ru.Cp1251.properties > %BASEPATH%\..\..\build\ru\arriah\servicedesk\web\commonjsp\servicedesk_ru.properties